#ifndef __GSM_BA01_H__
#define __GSM_BA01_H__

#include "vbb_GSM.h"
#include "fw/vbb_Utils.h"
#include "vbb_FirmwareUtils.h"

//void GSM_Reboot_BA01(void);
void GSM_SetUp_BA01(void);
bool GSM_GPRS_IsOpen_BA01(void);
char GSM_NetworkSet_BA01(void);
char GSM_GPRS_Open_BA01(void);
char GSM_GPRS_WaitForOpen_BA01(void);
bool GSM_TCP_IsOpen_BA01(void);
char GSM_TCP_Opened_BA01(const char * Document, char * DataBuffer, int * DataSize, char * TmpBuffer);
char GSM_TCP_Open_BA01(const char * ServerAddr);
char GSM_TCP_WaitForOpen_BA01(void);
char GSM_TCP_DataWaitForReady_BA01(void);
int GSM_TCP_DataPrepareSend_BA01(char * DataBuffer, int DataSize);
int GSM_TCP_DataSendData_BA01(char * DataBuffer, int SendSize);
char GSM_TCP_WaitForServerClosed_BA01(void);
char GSM_TCP_CloseClient_BA01(void);
int GSM_Communication_ReceivingData_BA01(char * Buffer);
void GSM_SwitchOff_BA01(void);
void GSM_SwitchOn_BA01(void);
bool GSM_IsOn_BA01(void);
bool GSM_IsOff_BA01(void);
bool GSM_Ready_BA01(void);

#endif

